package studentmanage.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import studentmanage.DTO.GradeDTO;
import studentmanage.entity.Grades;

import java.util.List;

@Mapper
public interface GradeMapper {
    List<Grades> selectGrade(GradeDTO gradeDTO);


    void addGrade(Grades grades);

    @Delete("delete from grades where grade_id=#{gradeId}")
    void deleteGrade(long gradeId);

    void updateGrade(Grades grades);
}
